package work.huangxin.share.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import work.huangxin.share.mapper.CityAdcodeMapper;
import work.huangxin.share.service.CityAdcodeService;

/**
 * @author 季台星
 * @Date 2023 04 20 22 28
 */
@Service
public class CityAdcodeServiceImpl implements CityAdcodeService {
    @Autowired
    private CityAdcodeMapper cityAdcodeMapper;

    @Override
    public Integer getAdcodeByCityName(String cityName) {
        return cityAdcodeMapper.selectAdcodeByCity(cityName);
    }

    @Override
    public Integer insertAdcode(String cityName, Integer adcode) {
        return cityAdcodeMapper.insertCityAdcode(cityName,adcode);
    }
}
